package com.zhangxi.springbootwebzhangxi.service;

import com.zhangxi.springbootwebzhangxi.pojo.Emp;
import com.zhangxi.springbootwebzhangxi.pojo.PageBean;

import java.time.LocalDate;
import java.util.List;

/**
 * ClassName: EmpService
 * Package: com.zhangxi.springbootwebzhangxi.service
 */
public interface EmpService {

    PageBean page(Integer page, Integer pageSize);

//    List<Emp> list();
    PageBean list(Integer page, Integer pageSize, String name, Short gender, LocalDate begin, LocalDate end);

    void deleteEmp(List<Integer> ids);

    void insertEmp(Emp emp);
    public Emp getById(Integer id);

    /**
     * 更新员工
     * @param emp
     */
    public void update(Emp emp);

    /**
     * 用户登录
     * @param emp
     * @return
     */
    public Emp login(Emp emp);
}
